#include<iostream>
#include<cstdio>
using namespace std;
int main(){
    int n,m,arr[15][15];
    cin>>n>>m;
    int temp;
    for(int i=1;i<=n;i++){
        for(int j=1;j<=m;j++){
            cin>>temp;
            cout<<temp<<" ";
        }
    cout<<endl;
    }
    return 0;
}
